//
//  ViewController.m
//  NSString+STRegex
//
//  Created by yls on 14-1-15.
//  Copyright (c) 2014年 yls. All rights reserved.
//

#import "ViewController.h"
#import "NSString+STRegex.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    
    NSString *idCardNum = @"11010120140101391x";
    BOOL rc = [idCardNum isValidIdCardNum];
    if (rc) {
        NSLog(@"身份证号合法");
    } else {
        NSLog(@"身份证号不合法");
    }
    
    
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
